package com.learn.multi_thread.A_BaseThread.A_Base;

public class TreadDaemon {
    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();

        t1.setName("master");
        t2.setName("follower");

        t2.setDaemon(true);

        t1.start();
        t2.start();
    }
}
